//test for village card

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

#define DEBUG 0
#define NOISY_TEST 1

int main () {

  int r;
  int hCount;  //num of cards in hand
  int dCount;  //num of cards in deck
  int k[10] = {adventurer, council_room, feast, gardens, mine,
	       remodel, smithy, village, baron, great_hall};
  int bonus=0;
        
  struct gameState G;
  
  r = initializeGame(2, k, 1, &G);

  dCount = G.deckCount[0];
  hCount = G.handCount[0]; 
  int actions = G.numActions;

  puts("\n\n********* TESTING VILLAGE ************\n");
  printf("num actions: %d\n", G.numActions );

  printf ("initializeGame(2, k, 1, &G) = %d\n", r);
  assert(r == 0);

  puts("playing village");
  cardEffect(village,0,0,0,&G,1,&bonus);

  printf("num actions: %d\n", G.numActions );
  assert(G.numActions == actions + 1 ); //player spent one action, received two, for a net gain of 1
  assert(G.handCount[0] == hCount);

  printf("Village card: PASS\n");



  
  return 0;
}
